<template>
  <div class="no-result-wrapper">
    <div class="no-result"></div>
    <p>{{title}}</p>
  </div>
</template>

<script>
export default {
  name: 'no-result',
  props: {
    title: {
      type: String,
      default: '搜索内容为空'
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~common/stylus/variable.styl'
  @import '~common/stylus/mixin.styl'
  .no-result-wrapper {
    position: fixed
    top: 156px
    right: 0
    bottom: 0
    left: 0
    display: flex
    flex-direction: column
    justify-content: center
    .no-result {
      width: 80px
      height: 80px
      bg-image(no-result)
      background-size: contain
      margin: 0 auto
    }
    p {
      text-align: center
      line-height: 48px
      color: $color-text-l
    }
  }
</style>
